package com.itasura.unitofwork;

import java.util.ArrayList;
import java.util.List;

/**
 * @author sailor wang
 * @date 2018/10/15 下午2:31
 * @description
 */
public interface IUnitOfWork<T> {
    String INSERT = "INSERT";
    String DELETE = "DELETE";
    String MODIFY = "MODIFY";

    void registerNew(T entity);

    void registerModify(T entity);

    void registerDelete(T entity);

    void commit();

}